package com.hycreate.platform.modules.atta;

import org.hibernate.validator.constraints.Length;

import com.hycreate.platform.common.persistence.DataEntity;

/**
 * 附件Entity
 * @author hoader
 * @version 2017-01-10
 */
public class SfAttachment extends DataEntity<SfAttachment> {
	
	private static final long serialVersionUID = 1L;
	private String objectId;		// 业务ID
	private String url;		// 附件Url
	
	public SfAttachment() {
		super();
	}

	public SfAttachment(String id){
		super(id);
	}

	@Length(min=0, max=64, message="业务ID长度必须介于 0 和 64 之间")
	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}
	
	@Length(min=0, max=200, message="附件Url长度必须介于 0 和 200 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
}